package com.example.personnel_oa.dubbo;


import com.example.comment_oa.dubbo.PositiveServiceDubbo;
import com.example.comment_oa.pojos.Positive;
import com.example.personnel_oa.service.PositiveService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class PositiveServiceDubboImpl implements PositiveServiceDubbo {
    @Resource
    PositiveService positiveService;

    //新增转正
    @Override
    public int insertadd(Positive positive) {
        int insertadd = positiveService.insertadd(positive);
        return insertadd;
    }

    //转正审批成功
    @Override
    public int posState(String posName, String posBianhao) {
        int i = positiveService.posState(posName, posBianhao);
        return i;
    }

    //转正审批失败
    @Override
    public int posStates(String posName, String posBianhao) {
        int i = positiveService.posStates(posName, posBianhao);
        return i;
    }






}
